-
Notifications
You must be signed in to change notification settings - Fork 7
several quality-of-life improvements #293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
|
|
||
| # The inclination prior is a sine truncated between 0, and pi/2. | ||
| self.priors['inc'] = dist.truncsine() | ||
| self.priors['inc'] = dist.truncsine() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think for changing the order of things here you'll need to check that it doesn't influence the sampling.
I remember having problems with that at some point, where I thought using dictionaries should have solved this, but apparently it didn't.
Just so we aren't sampling nurot_e when we think it's something else like eps_g.
| self.Fpp(num_g, nu_p, nu_g, self.obs['dnu'][0], DPi1), lmbda=lmbda) | ||
| return a, b | ||
|
|
||
| num_p, num_g = jax.lax.fori_loop(0, self.rootiter, _body, (nu_p, nu_g)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this improve the compile-time?
We of course also need to verify that results don't change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this significantly improves compile times because of no loop unrolling, and allows parameterisation by number of iterations without recompilation. this also is (as far as I can tell) the preferred pattern for for loops.
…ents of a modeID.results object
…e step of manual edits for priors)
Uh oh!
There was an error while loading. Please reload this page.